﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
　  <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>呷饭网</title>
    <link href="styles/mobile.css" rel="stylesheet" />
    <script type="text/javascript" src="scripts/jquery-1.8.0.min.js"></script>
</head>
<script type="text/javascript">
    $(document).ready(function () {
        $("#LoginName").focus();
        $("#LoginBtn").click(login);

        function loadPage(urlStr) {
            document.location.href = urlStr;
        }

        function login() {
            var datas = $("#loginform").serialize();
            var url = "CommonPage.aspx?opration=login&" + datas;
            $.ajax({
                url: url,
                type: "post",
                dataType: 'json',
                success: function (data) {
                    if (data.Success) {
                        loadPage(data.Url);
                    }
                    else {
                        $("#msgtip").text(data.Msg);
                    }
                }
            });
            return false;
        }
    });
</script>
<body>
    <div class="wrapall">
        <table class="topbar">
            <tr>
                <td class="l"></td>
                <td class="c">酒店登录</td>
                <td class="r"></td>
            </tr>
        </table>
        <div class="loginform">
            <p>呷饭网</p>
            <form id="loginform" method="post">
                <ol>
                    <li class="lgnname">
                        <input type="text" id="LoginName" name="LoginName" /></li>
                    <li class="lgnpwd">
                        <input type="password" id="LoginPasswd" name="LoginPasswd" /></li>
                    <li class="lgnbtn">
                        <input type="submit" id="LoginBtn" name="LoginBtn" value="登录" /></li>
                </ol>
            </form>
            <span class="tips"><i></i><b id="msgtip">请输入用户名和密码</b>

            </span>
            <br />
        </div>
    </div>
</body>
</html>
